package com.ttg.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ttg.common.config.LocalDateTimeDeserializer;
import com.ttg.common.config.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhangHongYuan
 * @description
 * @date 2023/11/14 11:06
 */
@Data
public class VipBindAccountDto implements Serializable {

    private static final long serialVersionUID = 7161133394526318836L;

    /**
     * 会员绑定账户id
     */
    @JsonProperty(value = "id")
    private Long id;
    /**
     * 会员编号
     */
    @JsonProperty(value = "vipId")
    private Long vipId;

    @JsonProperty(value = "actNo")
    private Long actNo;
    /**
     * 商户名称
     */
    @JsonProperty(value = "actName")
    private String actName;
    /**
     * 账号
     */
    @JsonProperty(value = "bankAccount")
    private String bankAccount;

    /**
     * 总积分
     */
    @JsonProperty(value = "totalScore")
    private String totalScore;
    /**
     * 绑定时间
     */
    @JsonProperty(value = "bindTime")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime bindTime;
    /**
     * 更新时间
     */
    @JsonProperty(value = "updateTime")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;
}
